package pl.pollub.medikit.client.ui;

import com.google.gwt.user.client.ui.AbsolutePanel;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.CheckBox;
import com.google.gwt.user.client.ui.DeckPanel;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.Grid;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.ListBox;
import com.google.gwt.user.client.ui.TabPanel;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.TextBoxBase;

public class UIPacjentMainPanel extends DeckPanel {
	public UIPacjentMainPanel() {
		
		TabPanel tabPanel = new TabPanel();
		tabPanel.setAnimationEnabled(true);
		add(tabPanel);
		
		FlowPanel flowPanel_3 = new FlowPanel();
		tabPanel.add(flowPanel_3, "Edycja danych", false);
		flowPanel_3.setSize("740px", "478px");
		
		AbsolutePanel absolutePanel_1 = new AbsolutePanel();
		flowPanel_3.add(absolutePanel_1);
		absolutePanel_1.setHeight("400px");
		
		Label lblImi = new Label("Imię:");
		absolutePanel_1.add(lblImi, 30, 30);
		lblImi.setSize("200px", "20px");
		
		Label lblNazwisko = new Label("Nazwisko:");
		absolutePanel_1.add(lblNazwisko, 30, 90);
		lblNazwisko.setSize("200px", "20px");
		
		Button button_1 = new Button("New button");
		button_1.setText("Zapisz");
		absolutePanel_1.add(button_1, 208, 350);
		button_1.setSize("66px", "28px");
		
		TextBox textBox = new TextBox();
		textBox.setTextAlignment(TextBoxBase.ALIGN_LEFT);
		absolutePanel_1.add(textBox, 30, 60);
		textBox.setSize("190px", "8px");
		
		TextBox textBox_1 = new TextBox();
		textBox_1.setTextAlignment(TextBoxBase.ALIGN_LEFT);
		absolutePanel_1.add(textBox_1, 30, 120);
		textBox_1.setSize("190px", "8px");
		
		Label lblPesel = new Label("PESEL:");
		absolutePanel_1.add(lblPesel, 30, 150);
		lblPesel.setSize("200px", "20px");
		
		TextBox textBox_2 = new TextBox();
		textBox_2.setEnabled(false);
		textBox_2.setTextAlignment(TextBoxBase.ALIGN_LEFT);
		absolutePanel_1.add(textBox_2, 30, 180);
		textBox_2.setSize("190px", "8px");
		
		Label lblHaso = new Label("Hasło:");
		absolutePanel_1.add(lblHaso, 30, 210);
		lblHaso.setSize("200px", "20px");
		
		TextBox textBox_3 = new TextBox();
		textBox_3.setTextAlignment(TextBoxBase.ALIGN_LEFT);
		absolutePanel_1.add(textBox_3, 30, 240);
		textBox_3.setSize("190px", "8px");
		
		Label lblAdres = new Label("Adres:");
		absolutePanel_1.add(lblAdres, 260, 30);
		lblAdres.setSize("200px", "20px");
		
		TextBox textBox_4 = new TextBox();
		textBox_4.setTextAlignment(TextBoxBase.ALIGN_LEFT);
		absolutePanel_1.add(textBox_4, 260, 60);
		textBox_4.setSize("190px", "8px");
		
		Label lblKodpocztowy = new Label("Kod-pocztowy:");
		absolutePanel_1.add(lblKodpocztowy, 260, 90);
		lblKodpocztowy.setSize("200px", "20px");
		
		TextBox textBox_5 = new TextBox();
		textBox_5.setTextAlignment(TextBoxBase.ALIGN_LEFT);
		absolutePanel_1.add(textBox_5, 260, 120);
		textBox_5.setSize("190px", "8px");
		
		Label lblMiasto = new Label("Miasto:");
		absolutePanel_1.add(lblMiasto, 260, 150);
		lblMiasto.setSize("200px", "20px");
		
		TextBox textBox_6 = new TextBox();
		textBox_6.setTextAlignment(TextBoxBase.ALIGN_LEFT);
		absolutePanel_1.add(textBox_6, 260, 180);
		textBox_6.setSize("190px", "8px");
		
		Label lblEmail = new Label("E-mail:");
		absolutePanel_1.add(lblEmail, 260, 270);
		lblEmail.setSize("200px", "20px");
		
		TextBox textBox_7 = new TextBox();
		textBox_7.setTextAlignment(TextBoxBase.ALIGN_LEFT);
		absolutePanel_1.add(textBox_7, 260, 300);
		textBox_7.setSize("190px", "8px");
		
		Label lblPowtrzHaso = new Label("Powtórz hasło:");
		absolutePanel_1.add(lblPowtrzHaso, 30, 270);
		lblPowtrzHaso.setSize("200px", "20px");
		
		TextBox textBox_8 = new TextBox();
		textBox_8.setTextAlignment(TextBoxBase.ALIGN_LEFT);
		absolutePanel_1.add(textBox_8, 30, 300);
		textBox_8.setSize("190px", "8px");
		
		Label lblTelefon = new Label("Telefon:");
		absolutePanel_1.add(lblTelefon, 260, 210);
		lblTelefon.setSize("200px", "20px");
		
		TextBox textBox_9 = new TextBox();
		textBox_9.setTextAlignment(TextBoxBase.ALIGN_LEFT);
		absolutePanel_1.add(textBox_9, 260, 240);
		textBox_9.setSize("190px", "8px");
		
		FlowPanel flowPanel = new FlowPanel();
		tabPanel.add(flowPanel, "Historia leczenia", false);
		flowPanel.setSize("737px", "478px");
		
		Grid grid = new Grid(1, 1);
		flowPanel.add(grid);
		grid.setSize("517px", "274px");
		
		FlowPanel flowPanel_1 = new FlowPanel();
		tabPanel.add(flowPanel_1, "Oczekujące wizyty", false);
		flowPanel_1.setSize("739px", "478px");
		
		FlowPanel flowPanel_2 = new FlowPanel();
		tabPanel.add(flowPanel_2, "Umów wizytę", false);
		flowPanel_2.setSize("737px", "477px");
		
		AbsolutePanel absolutePanel = new AbsolutePanel();
		flowPanel_2.add(absolutePanel);
		absolutePanel.setHeight("400px");
		
		Label label = new Label("Specjalizacja:");
		absolutePanel.add(label, 30, 30);
		label.setSize("200px", "20px");
		
		ListBox listBox = new ListBox();
		absolutePanel.add(listBox, 30, 60);
		listBox.setSize("200px", "20px");
		
		Label label_1 = new Label("Dzień:");
		absolutePanel.add(label_1, 30, 90);
		label_1.setSize("200px", "20px");
		
		ListBox listBox_1 = new ListBox();
		absolutePanel.add(listBox_1, 30, 120);
		listBox_1.setSize("200px", "20px");
		
		Label label_2 = new Label("Godzina:");
		absolutePanel.add(label_2, 260, 90);
		label_2.setSize("200px", "20px");
		
		ListBox listBox_2 = new ListBox();
		absolutePanel.add(listBox_2, 260, 120);
		listBox_2.setSize("200px", "20px");
		
		CheckBox checkBox = new CheckBox("Idź do systemu płatności");
		absolutePanel.add(checkBox, 260, 160);
		checkBox.setSize("200px", "20px");
		
		Button button = new Button("New button");
		button.setText("Umów");
		absolutePanel.add(button, 210, 210);
		button.setSize("66px", "28px");
		
		FlowPanel flowPanel_4 = new FlowPanel();
		tabPanel.add(flowPanel_4, "Wyloguj", false);
		flowPanel_4.setSize("736px", "477px");
		
		Button btnWyloguj = new Button("Wyloguj");
		flowPanel_4.add(btnWyloguj);
		showWidget(0);
		
	}
	
	public void setupView() {
		
	}
}
